package person01;

public class Cat extends person {


    private String type;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Cat(String type) {
        this.type = type;
    }

    public Cat(String name, int age, String type) {
        super(name, age);
        this.type = type;
    }

    public void stat() {

        System.out.println("猫捉老鼠");
        super.stat();
    }
}
